package com.spring_mysql_redis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sp_comment")
public class Comment implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer dynamicId;

    private Integer userId;

    private String content;

    private String createTime;

    private String updateTime;

}
